package com.boboPlanet.user.component;

import org.springframework.context.ApplicationEvent;

/**
 * @Description: TODO 星球用户邮件登录事件
 * @Author: mis_wu
 * @Date: 2023/7/29
 * @Company Login
 **/
public class PlanetUserEmailLoginEvent extends ApplicationEvent {

    private final String email;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public PlanetUserEmailLoginEvent(Object source,String email) {
        super(source);
        this.email = email;
    }

    public String getUserEmail(){
        return this.email;
    }
}
